/**
 * 
 */
package com.easidea.tim.service.base;

import org.springside.core.service.EntityService;

import com.easidea.tim.dao.base.FlowNoDao;
import com.easidea.tim.entity.base.FlowNo;
import com.easidea.tim.util.TimConstant.FlowNoType;

/**
 * @author Harrison
 *
 */
public class FlowNoService extends EntityService<FlowNo, FlowNoDao> {

	private FlowNoDao flowNoDao;
	
	public String genNextFlowNo(FlowNoType type) {
        return flowNoDao.genNextFlowNo(type);
    }
	
	/* (non-Javadoc)
	 * @see org.springside.core.service.EntityService#getEntityDao()
	 */
	@Override
	public FlowNoDao getEntityDao() {
		return flowNoDao;
	}

	/**
	 * @return the flowNoDao
	 */
	public FlowNoDao getFlowNoDao() {
		return flowNoDao;
	}

	/**
	 * @param flowNoDao the flowNoDao to set
	 */
	public void setFlowNoDao(FlowNoDao flowNoDao) {
		this.flowNoDao = flowNoDao;
	}

}
